package com.saianfu.flowable.demo

import com.fasterxml.jackson.databind.ObjectMapper

fun <T> T.toJsonString(): String = this.let {
    val mapper = ObjectMapper()
    return@let mapper.writeValueAsString(it)
}